// 导入重置样式
require("../../assets/css/reset.css")
// 引入公共样式
require("../../assets/css/basic.css")
// 引入当前页面的样式
require("./countdown.less")

// 引入dom
const dom = require("../../utils/dom.js");
// 引入axios模块
const axios = require("axios");

window.addEventListener("DOMContentLoaded", () => {
    // 添加定时器
    let num = 3;
    window.setInterval(() => {
        num--;
        dom.get("#num").textContent = num;
        if(num === 0){
            location.href = "exercising.html";
        }
    }, 1000)
})